package com.cw.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
* @author ly
* @since 2021-06-10
*/
@ApiModel(value ="占床业务主表")
@Getter
@Setter
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("OCCUPATION_BED")
public class OccupationBed implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键")
    @TableId("id")
    private String id;

    @ApiModelProperty(value = "占床医生名字")
    @ExcelProperty(value = "SUBSCRIBE_DOCT_NAME")
    @TableField("SUBSCRIBE_DOCT_NAME")
    private String subscribeDoctName;

    @ApiModelProperty(value = "占床医生编码")
    @ExcelProperty(value = "SUBSCRIBE_DOCT_CODE")
    @TableField("SUBSCRIBE_DOCT_CODE")
    private String subscribeDoctCode;

    @ApiModelProperty(value = "患者手机号码")
    @ExcelProperty(value = "PATIENT_PHONE")
    @TableField("PATIENT_PHONE")
    private String patientPhone;

    @ApiModelProperty(value = "创建者工号")
    @ExcelProperty(value = "OPER_NO")
    @TableField("OPER_NO")
    private String operNo;

    @ApiModelProperty(value = "创建者名称")
    @ExcelProperty(value = "OPER_NAME")
    @TableField("OPER_NAME")
    private String operName;

    @ApiModelProperty(value = "患者姓名")
    @ExcelProperty(value = "PATIENT_NAME")
    @TableField("PATIENT_NAME")
    private String patientName;

    @ApiModelProperty(value = "患者身份证")
    @ExcelProperty(value = "PATIENT_IDNNO")
    @TableField("PATIENT_IDNNO")
    private String patientIdnno;

    @ApiModelProperty(value = "创建时间")
    @ExcelProperty(value = "CREATE_TIME")
    @TableField("CREATE_TIME")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "床号")
    @ExcelProperty(value = "BED_NO")
    @TableField("BED_NO")
    private String bedNo;

    @ApiModelProperty(value = "病区编码")
    @ExcelProperty(value = "NURSE_CELL_CODE")
    @TableField("NURSE_CELL_CODE")
    private String nurseCellCode;

    @ApiModelProperty(value = "病区名称")
    @ExcelProperty(value = "NURSE_CELL_NAME")
    @TableField("NURSE_CELL_NAME")
    private String nurseCellName;

    @ApiModelProperty(value = "科室编码")
    @ExcelProperty(value = "DEPT_CODE")
    @TableField("DEPT_CODE")
    private String deptCode;

    @ApiModelProperty(value = "科室名称")
    @ExcelProperty(value = "DEPT_NAME")
    @TableField("DEPT_NAME")
    private String deptName;

    @ApiModelProperty(value = "备注")
    @ExcelProperty(value = "REMARKS")
    @TableField("REMARKS")
    private String remarks;

    @ApiModelProperty(value = "更改时间")
    @ExcelProperty(value = "UPDATE_TIME")
    @TableField("UPDATE_TIME")
    private LocalDateTime updateTime;

    @ApiModelProperty(value = "0 占床 1取消 ")
    @ExcelProperty(value = "STATE")
    @TableField("STATE")
    private String state;

    @ApiModelProperty(value = "密钥")
    @TableField(exist = false)
    @ExcelIgnore
    private String keyWorld;
}
